package com.leiyk.rateLimiter.enums;

/**
 * @Description: 限流策略枚举
 * @Author: leiyk6
 * @Date: 2024/7/2 17:29
 */
public enum RateLimiterStrategyEnum {
    SIMPLE("simple", "src/main/resources/lua/leaky_rate.lua"),

    SLIDE("slide", "src/main/resources/lua/leaky_rate.lua"),

    TOKEN("token", "src/main/resources/lua/leaky_rate.lua"),

    LEAKY("leaky", "src/main/resources/lua/leaky_rate.lua");

    private String name;

    private String scriptPath;


    RateLimiterStrategyEnum(String name, String scriptPath) {
        this.name = name;
        this.scriptPath = scriptPath;
    }
}
